
using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.Foundation;
using MonoTouch.UIKit;

namespace HubbleTelescopeIPhone
{
	public class Application
	{
		static void Main (string[] args)
		{
			UIApplication.Main (args);
		}
	}

	// The name AppDelegate is referenced in the MainWindow.xib file.
	public partial class AppDelegate : UIApplicationDelegate
	{
		// This method is invoked when the application has loaded its UI and its ready to run
		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
			//I insert our root controller's view below the progress indicator, so you can see it
			_window.InsertSubviewBelow(_navController.View, _indicator);
			
			//Usually it looks like this:
			//_window.AddSubView(_navController.View);
			
			//Show the window
			_window.MakeKeyAndVisible ();
			
			return true;
		}
	}
}

